import request from '@/utils/request'

// 查询工作流程配置列表
export function listWorkflowconfiguration(query) {
  return request({
    url: '/system/workflowconfiguration/list',
    method: 'get',
    params: query
  })
}

// 查询工作流程配置详细
export function getWorkflowconfiguration(id) {
  return request({
    url: '/system/workflowconfiguration/' + id,
    method: 'get'
  })
}

// 新增工作流程配置
export function addWorkflowconfiguration(data) {
  return request({
    url: '/system/workflowconfiguration',
    method: 'post',
    data: data
  })
}

// 修改工作流程配置
export function updateWorkflowconfiguration(data) {
  return request({
    url: '/system/workflowconfiguration',
    method: 'put',
    data: data
  })
}

// 删除工作流程配置
export function delWorkflowconfiguration(id) {
  return request({
    url: '/system/workflowconfiguration/' + id,
    method: 'delete'
  })
}
